home *** CD-ROM | disk | FTP | other *** search
- Path: rcp6.elan.af.mil!rscernix!danpop
- From: danpop@mail.cern.ch (Dan Pop)
- Newsgroups: comp.lang.c
- Subject: Re: Schildt <- Advanced Books
- Date: 7 Mar 96 22:45:06 GMT
- Organization: CERN European Lab for Particle Physics
- Message-ID: <danpop.826238706@rscernix>
- References: <8BA8405.02C70020DE.uuout@sourcebbs.com> <danpop.825687663@rscernix> <4he6hb$ahn@solutions.solon.com> <danpop.826121528@rscernix> <4hleu9$5ah@solutions.solon.com>
- NNTP-Posting-Host: ues5.cern.ch
- X-Newsreader: NN version 6.5.0 #7 (NOV)
-
- In <4hleu9$5ah@solutions.solon.com> seebs@solutions.solon.com (Peter Seebach) writes:
-
- >In article <danpop.826121528@rscernix>, Dan Pop <danpop@mail.cern.ch> wrote:
- >>"%f" might be a typo (yet it was preserved between editions, so maybe
- >>it was not a typo :-) but the missing cast _cannot_ be a typo.
- >
- >Well, maybe a very *large* typo.
- >
- >>There is nothing subtle here, for someone who knows C (which rules Schildt
- >>out :-) size_t is _guaranteed_ not to be defined as int, so using "%d"
- >>is plain idiotic. I could understand a "%u", and qualify the author as
- >>mildly stupid :-)
- >
- >I consider a bug subtle if the code is likely to work correctly most of the
- >time.
-
- So, you consider "void main" and calling malloc without a declaration in
- scope subtle bugs :-)
-
- Dan
- --
- Dan Pop
- CERN, CN Division
- Email: danpop@mail.cern.ch
- Mail: CERN - PPE, Bat. 31 R-004, CH-1211 Geneve 23, Switzerland
-